// DumpBuffer.h: interface for the DumpBuffer class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DUMPBUFFER_H__4688DAA9_074A_4BAA_986E_CBC637631D6D__INCLUDED_)
#define AFX_DUMPBUFFER_H__4688DAA9_074A_4BAA_986E_CBC637631D6D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class DumpBuffer
{
public :
    DumpBuffer() ;
    void Clear() ;
    void Printf( const char* format, ... ) ;

	inline  operator const char *() const
	{
		return buffer;
	}
private :
    enum { BUFFER_SIZE = 32000 } ;
    char buffer[ BUFFER_SIZE ] ;
    char* current ;
} ;

#endif // !defined(AFX_DUMPBUFFER_H__4688DAA9_074A_4BAA_986E_CBC637631D6D__INCLUDED_)
